package com.bridge.bridge_wd.activity;

import android.view.View;

import com.bridge.bridge_wd.R;
import com.bridge.bridge_wd.databinding.ActivitySetBinding;
import com.bridge.common.base.BaseActivity;
import com.bridge.common.utils.UltimateBarXUtils;

/**
 * @ClassName SetActivity
 * @Description TODO消息
 * @Author xushufeng
 * @CreateDate 2021/4/11 0011 12:40
 * @Version 1.0
 * @UpdateDate 2021/4/11 0011 12:40
 * @UpdateRemark 更新说明
 */
public class SetActivity extends BaseActivity {
    ActivitySetBinding binding;
    boolean falg = true;

    @Override
    protected int layoutId() {
        return R.layout.activity_set;
    }

    @Override
    protected void initView() {

        binding = getBind();
        binding.linearBack.setOnClickListener(this);
        binding.linearClearSay.setOnClickListener(this);
        binding.linearListtenType.setOnClickListener(this);
        binding.linearNoVoice.setOnClickListener(this);
        binding.linearXiaoxi.setOnClickListener(this);
        UltimateBarXUtils.setAppBar(this, true, true, R.color.color_f5f5f5);
    }

    @Override
    public void onClick(View view) {
        super.onClick(view);
        if (view.getId() == R.id.linear_back) {
            finish();
        }
        if (view.getId() == R.id.linear_clear_say) {
        }
        if (view.getId() == R.id.linear_listten_type) {
            if (falg) {
                falg = false;
                binding.imageKaiguan.setImageDrawable(getResources().getDrawable(R.mipmap.kai));
            } else {
                falg = true;

                binding.imageKaiguan.setImageDrawable(getResources().getDrawable(R.mipmap.guan));
            }
        }
        if (view.getId() == R.id.linear_no_voice) {
            turnToActivity(NoVoiceActivity.class);
        }
        if (view.getId() == R.id.linear_xiaoxi) {
        }
    }

    @Override
    protected void setListenner() {

    }
}
